package com.wowudi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@ApiModel(value="com-wowudi-entity-Role")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_role")
public class Role implements Serializable {
    /**
     * 角色id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value="角色id")
    private Integer id;

    /**
     * 角色名
     */
    @TableField(value = "role_name")
    @ApiModelProperty(value="角色名")
    private String roleName;

    /**
     * 角色状态
     */
    @TableField(value = "status")
    @ApiModelProperty(value="角色状态")
    private String status;


    private UserRole userRole;

    private static final long serialVersionUID = 1L;
}
